package org.speedmall.amount.api;

import org.speedmall.amount.api.bo.AmountDecreaseBO;
import org.speedmall.amount.api.bo.AmountIncreaseBO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
/**
 * @author hujiaguo
 * @Package org.speedmall.amount
 * @date 2024/4/25 13:07:51
 */
@FeignClient(value = "account", contextId = "amount")
public interface AmountFeignClient {
    @PostMapping("/amount/decrease")
    void decreaseMoney(@RequestBody AmountDecreaseBO amountDecreaseBO);

    @PostMapping("/amount/increase")
    void increaseMoney(@RequestBody AmountIncreaseBO amountIncreaseBO);
}
